<%@ page contentType="text/html; charset=big5" language="java" import="util.*, java.sql.*,beans.*" errorPage="ErrorPage.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="astyles.css" rel="stylesheet" type="text/css" />
<head>
    commeny by ming....................
    <style type="text/css">
        @import url(calendar-blue2.css);
    </style>
    <script type="text/javascript" src="calendar.js"></script>
    <script type="text/javascript" src="calendar-en.js"></script>
    <script type="text/javascript" src="calendar-setup.js"></script>
<meta http-equiv="Content-Type" content="text/html"; charset="UTF-8" />
<title>Advance Search</title>
</head>
<body>
<div class="absolute_title">Captain Hook's Store</div>
<div class="absolute_title2">
  <h5>
    <%
        String username = (String)session.getAttribute("username");
        
        if(username==null) {
            out.println("Please <a href='login.jsp'>Login.</a>");
        }else {
        %>
    <b>Hi!<%= username%></b><br/>
    <a href="logout.jsp"> Click here to logout</a>
    <% }
        %>
  </h5>
</div>
<div class="wrap">
<div class="canvas">
<div class="left_column">
  <div class="header_left">
    <div class="header_leftrowone">&nbsp;</div>
    <div class="header_leftrowtwo"><img src="../image/cpt_hook_banner1.jpg" width="123" height="87" /></div>
    <div class="header_leftrowthree"></div>
  </div>
  <div class="leftnav">
    <ul>
      <li></li>
    </ul>
  </div>
  <div>
    <SCRIPT src="displayMyFlash1.js"></SCRIPT>
  </div>
</div>
<div class="right_column">
  <div class="header_right">
    <div class="header_rightrowone">&nbsp;</div>
    <div class="header_rightrowtwo">&nbsp;</div>
    <div class="header_rightrowthree">
      <ul class="topmenu">
        <li><a title="Home" 
                       href="index.jsp">Home</a> | </li>
        <li><a title="Information" 
                       href="companybackground.html">Information</a> |
        <li><a title="Forum" 
                       href="http://www.voy.com/206926/">Discussion Forum</a></li>
      </ul>
    </div>
  </div>
  <tr>
    <td valign="top" height="369" colspan="2"><form action="AdvanceSearch" method="get">
        <table width="785" height="350" border="0">
          <tr>
            <td width="168" height="50" align="left" valign="middle"> Enter Keyword or Item ID: </td>
            <td width="270" align="left" valign="middle"><label>
              <input name="keyword" type="text" id="keyword" value="" />
              </label>
            </td>
            <td width="333" align="left" valign="middle">&nbsp;</td>
          </tr>
          <tr>
            <td height="50" align="left" valign="middle">Scale:</td>
            <td align="left" valign="middle"><select name="scale" id="scale">
                <option value="*" selected="selected">Any</option>
                <option value="1:6">1:6</option>
                <option value="1:16">1:16</option>
                <option value="1:35">1:35</option>
                <option value="1:72">1:72</option>
                <option value="1:700">1:700</option>
              </select></td>
            <td align="left" valign="middle">&nbsp;</td>
          </tr>
          <tr>
            <td height="50" align="left" valign="middle">Company:</td>
            <td align="left" valign="middle"><label>
              <select name="company" id="company">
                <option value="*" selected="selected">Any</option>
                <option value="FOV">FOV</option>
                <option value="Dragon">Dragon</option>
                <option value="21st century">21st century</option>
                <option value="BBI">Blue Box Toy</option>
                <option value="Airfix">Airfix</option>
                <option value="hot">hot</option>
              </select>
              </label>
            </td>
            <td align="left" valign="middle">&nbsp;</td>
          </tr>
          <tr>
            <td height="50" align="left" valign="middle">Type: </td>
            <td align="left" valign="middle"><select name="type" id="type">
                <option value="*" selected="selected">Any</option>
                <option value="AFV">AFV</option>
                <option value="aircraft">Aircraft</option>
                <option value="figure">Figure</option>
                <option value="diroma">Diroma</option>
                <option value="ship">Ship</option>
                <option value="plastic kit">Plastic Kit</option>
                <option value="model kit">Model Kit</option>
                <option value="playset">Play Set</option>
              </select>
            </td>
            <td align="left" valign="middle">&nbsp;</td>
          </tr>
          <tr>
            <td height="50" align="left" valign="middle">Price:</td>
            <td align="left" valign="middle">Min: HKD$
              <input name="miniPrice" type="text" id="miniPrice" value="Any"/>
            </td>
            <td align="left" valign="middle">Max: HKD$
              <input name="maxPrice" type="text" id="maxPrice" value="Any"/></td>
          </tr>
          <tr>
            <td height="50" align="left" valign="middle">Distribution Date: </td>
            <td align="left" valign="middle"> From:
              <input type="text" id="startDate" name="startDate" value="Any" readonly/>
              <input type="button" id='trigger' value='select' />
            </td>
            <td align="left" valign="middle">To:
              <input type="text" id="endDate" name="endDate" value="Any" readonly />
              <input type="button" id='trigger2' value='select' /></td>
            <script type="text/javascript">
  			Calendar.setup(
    			{
    			  inputField  : "startDate",         // ID of the input field
     			  ifFormat    : "%d/%m/%Y",    // the date format
			  button      : "trigger"       // ID of the button
    		 	}
 				 );
				 Calendar.setup(
    			{
    			  inputField  : "endDate",         // ID of the input field
     			  ifFormat    : "%d/%m/%Y",    // the date format
			  button      : "trigger2"       // ID of the button
    		 	}
 				 );
                        </script>
          </tr>
          <tr>
            <td height="34" align="left" valign="middle">&nbsp;</td>
            <td align="left" valign="middle"><center>
                <p>
                  <input type="submit" value="Search">
                </p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
              </center></td>
            <td align="left" valign="middle"></td>
          </tr>
        </table>
      </form></td>
  </tr>
  <tr>
    <td height="44" colspan="2"></td>
  </tr>
  </table>
  <div class="footer">
    <ul class="basemenu">
      <li></li>
    </ul>
    Designed by Captain Hook inc, all rights reserved. <br />
  </div>
</div>
</body>
</html>
